<!DOCTYPE html>
<style>
* {
    margin-top: inherit;
    border-top-style: dashed;
}

*:only-of-type {
    outline-style: dotted;
    -webkit-writing-mode: vertical-rl;
}
</style>
<p>This test passes if it does not crash.
<svg>
    <text class="CLASS0 CLASS4" font-variant="small-caps"</metadata>
<textPath>
<script>
if (window.testRunner)
    testRunner.dumpAsText();
</script>
